package com.gp.service;

import com.gp.model.dto.DistributorInfo;
import com.gp.model.entity.BaseUserrelation;

import java.util.List;

import com.baomidou.mybatisplus.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 弓成龙
 * @since 2017-11-26
 */
public interface IBaseUserrelationService extends IService<BaseUserrelation> {
 
  boolean insertRelation(Long id, String parentId);
  
  /**
   * 查询所有的下级分销商
   * @param userId 用户的id
   * @return DistributorInfo
   */
  List<DistributorInfo> listLowers(Long userId);
}
